package org.biloxi.model.player.impl;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import org.biloxi.model.magicobjects.MagicObject;
import org.biloxi.model.mutable.player.ZoneMutable;
import org.biloxi.player.PlayerID;

public class ZoneImpl implements ZoneMutable {
	private final List<MagicObject> _mos = new LinkedList<MagicObject>();
	private final List<MagicObject> _mosUnMod = Collections.unmodifiableList(_mos);
	private final PlayerID _ownerid;

	public ZoneImpl(PlayerID _ownerid) {
		this._ownerid = _ownerid;
	}

	public List<MagicObject> mutableMagicObjects() {
		return _mos;
	}

	public List<MagicObject> getMagicObjects() {
		return _mosUnMod;
	}

	public PlayerID getOwnerid() {
		return _ownerid;
	}	
}
